#include "HttpServer.hpp"
#include <memory>

static void Usage(const std::string &proc)
{
    std::cout << "\nUsage: " << proc << " port\n" << std::endl; 
}

int main(int argc, char* argv[])
{
    if(argc != 2)
    {
        Usage(argv[0]);
        exit(1);
    }

    uint16_t port = stoi(argv[1]);
    unique_ptr<HttpServer> sev(new HttpServer(port));
    sev->Init();
    sev->Start();

    return 0;
}